﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace B.S.Database.Interface.Migrations
{
    public partial class _0728work3 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Production_Batch",
                table: "Suppliers");

            migrationBuilder.DropColumn(
                name: "Production_Batch",
                table: "Slaughter_Informations");

            migrationBuilder.DropColumn(
                name: "Production_Batch",
                table: "Processing_Infomations");

            migrationBuilder.DropColumn(
                name: "Production_Batch",
                table: "Picture_Informations");

            migrationBuilder.DropColumn(
                name: "Production_Bath",
                table: "Immune_Infomations");

            migrationBuilder.DropColumn(
                name: "Production_Batch",
                table: "Company_Informations");

            migrationBuilder.DropColumn(
                name: "Production_Batch",
                table: "Breeding_Informations");

            migrationBuilder.AddColumn<int>(
                name: "TraceabilityId",
                table: "Suppliers",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "TraceabilityId",
                table: "Slaughter_Informations",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "TraceabilityId",
                table: "Processing_Infomations",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "TraceabilityId",
                table: "Picture_Informations",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "TraceabilityId",
                table: "Immune_Infomations",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "TraceabilityId",
                table: "Company_Informations",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "TraceabilityId",
                table: "Breeding_Informations",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "TraceabilityId",
                table: "Suppliers");

            migrationBuilder.DropColumn(
                name: "TraceabilityId",
                table: "Slaughter_Informations");

            migrationBuilder.DropColumn(
                name: "TraceabilityId",
                table: "Processing_Infomations");

            migrationBuilder.DropColumn(
                name: "TraceabilityId",
                table: "Picture_Informations");

            migrationBuilder.DropColumn(
                name: "TraceabilityId",
                table: "Immune_Infomations");

            migrationBuilder.DropColumn(
                name: "TraceabilityId",
                table: "Company_Informations");

            migrationBuilder.DropColumn(
                name: "TraceabilityId",
                table: "Breeding_Informations");

            migrationBuilder.AddColumn<string>(
                name: "Production_Batch",
                table: "Suppliers",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "Production_Batch",
                table: "Slaughter_Informations",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "Production_Batch",
                table: "Processing_Infomations",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "Production_Batch",
                table: "Picture_Informations",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "Production_Bath",
                table: "Immune_Infomations",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "Production_Batch",
                table: "Company_Informations",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "Production_Batch",
                table: "Breeding_Informations",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");
        }
    }
}
